{% extends "registration/registration_base.html" %}
{% block title %}Login{% endblock %}
{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
<table>
<tr>
    <td>{{ login_form.username.label_tag }}</td>
    <td>{{ login_form.username }}</td>
</tr>
<tr>
    <td>{{ login_form.password.label_tag }}</td>
    <td>{{ login_form.password }}</td>
</tr>
</table>
<p><a href="{% url auth_password_reset %}">Forgot</a> your password?  <a href="{% url registration_register %}">Need an account</a>?</p>

<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

<table>
    <form method='post' action='{% url django.contrib.auth.views.login %}'>{% csrf_token %}
        {{ register_form }}
        <tr><td></td><td><input type="submit" value="Send activation email" /></td>
    </form>
</table>

{% endblock %}
